package com.flx.at.spring.code.test.testbeanfactoryprocessor;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author: Fenglixiong
 * @Date: 2021/7/3 11:52
 * @Description:
 */
@ComponentScan(basePackages = "com.flx.at.spring.code.test.testbeanfactoryprocessor")
public class MainApp {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(MainApp.class);
        Object demoBean = ctx.getBean("demoBean");
        Class<?> aClass = demoBean.getClass();

        ctx.close();

    }

}
